import java.util.Arrays;

public class TestDemo5 {
    public static void ret(int[] array){
        array[0] = 1;
        int n = 1;
        for (int i = 1; i < array.length; i++) {
            array[i] = ++n;

        }
    }
    public static void main(String[] args) {
        int[] array = new int[100];
        ret(array);
        System.out.println(Arrays.toString(array));
    }
}
